title: Junos: Unauthenticated Remote Code Execution through J-Web interface
description: A remote, unauthenticated attacker may be able to execute code by exploiting a use-after-free defect found in older versions of PHP through injection of crafted data via specific PHP URLs within the context of the J-Web process. Affected releases are Juniper Networks Junos OS: 12.1X46 versions prior to 12.1X46-D67; 12.3 versions prior to 12.3R12-S5; 12.3X48 versions prior to 12.3X48-D35; 14.1 versions prior to 14.1R8-S5, 14.1R9; 14.1X53 versions prior to 14.1X53-D44, 14.1X53-D50; 14.2 versions prior to 14.2R7-S7, 14.2R8; 15.1 versions prior to 15.1R3; 15.1X49 versions prior to 15.1X49-D30; 15.1X53 versions prior to 15.1X53-D70.
problem types: Remote code execution
affected:
{
product: Junos OS
vendor: Juniper Networks
versions:
lessThan: 12.1X46-D67, status: affected, version: 12.1X46, versionType: custom
lessThan: 12.3R12-S5, status: affected, version: 12.3, versionType: custom
lessThan: 12.3X48-D35, status: affected, version: 12.3X48, versionType: custom
lessThan: 14.1R8-S5, 14.1R9, status: affected, version: 14.1, versionType: custom
lessThan: 14.1X53-D44, 14.1X53-D50, status: affected, version: 14.1X53, versionType: custom
lessThan: 14.2R7-S7, 14.2R8, status: affected, version: 14.2, versionType: custom
lessThan: 15.1R3, status: affected, version: 15.1, versionType: custom
lessThan: 15.1X49-D30, status: affected, version: 15.1X49, versionType: custom
lessThan: 15.1X53-D70, status: affected, version: 15.1X53, versionType: custom
}
metrics:
cvssV3_0: [
attackComplexity: LOW
attackVector: NETWORK
availabilityImpact: HIGH
baseScore: 9.8
baseSeverity: CRITICAL
confidentialityImpact: HIGH
integrityImpact: HIGH
privilegesRequired: NONE
scope: UNCHANGED
userInteraction: NONE
vectorString: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
version: 3.0
]
exploits: Juniper SIRT is not aware of any malicious exploitation of this vulnerability.
solutions: The following software releases have been updated to resolve this specific issue: 12.1X46-D67, 12.3R12-S8*, 12.3X48-D55, 14.1R8-S5, 14.1R9, 14.1X53-D44, 14.1X53-D50, 14.2R7-S7, 14.2R8, 15.1F5-S8, 15.1F6-S8, 15.1R5-S6, 15.1R7, 15.1X49-D100, 15.1X53-D70, 16.1R4-S6, 16.1R5, 16.2R2-S2, 16.2R3, 17.1R2-S5*, 17.1R3*, 17.2R2, 17.3R1, and all subsequent releases.
*Pending release
NOTE: While Junos OS 12.3R12-S5, 12.3X48-D35, 15.1F2+, 15.1R3, 15.1X49-D30, and all subsequent releases are not vulnerable, this issue has been proactively resolved.
workarounds: Disable J-Web, or limit access to only trusted hosts.