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:
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.2R7-S7, 14.2R8, 15.1F5-S8, 15.1F6-S8, 15.1R5-S6, 15.1R7, 15.1X49-D100, 15.1X53-D59, 15.1X53-D66, 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. This issue is being tracked as PR 1269932 which is visible on the Customer Support website. Note: Juniper SIRT's policy is not to evaluate releases which are beyond End of Engineering (EOE) or End of Life (EOL).
Software Releases, patches and updates are available at https://www.juniper.net/support/downloads/ .
Disable J-Web, or limit access to only trusted hosts.
2018-01-10: Initial publication 2018-03-28: Removed references to "placeholder" releases 14.1X53-D50 and 15.1X53-D70
Juniper SIRT would like to acknowledge and thank Cure53 for responsibly reporting this vulnerability.