USN-5220-1: Composer vulnerability

Publication date

8 July 2022

Overview

Composer could be made to run programs if it received specially crafted URL values.


Packages

Details

It was discovered that Composer did not properly sanitize URLs for
Mercurial repositories in the root composer.json and package source
download URLs. A remote attacker could possibly use this issue to execute
arbitrary code.

It was discovered that Composer did not properly sanitize URLs for
Mercurial repositories in the root composer.json and package source
download URLs. A remote attacker could possibly use this issue to execute
arbitrary code.

Update instructions

In general, a standard system update will make all the necessary changes.

Learn more about how to get the fixes.

The problem can be corrected by updating your system to the following package versions:

Ubuntu Release Package Version
20.04 LTS focal composer –  1.10.1-1ubuntu0.1~esm1  
18.04 LTS bionic composer –  1.6.3-1ubuntu0.1~esm1  
16.04 LTS xenial composer –  1.0.0~beta2-1ubuntu0.1~esm1  

Reduce your security exposure

Ubuntu Pro provides ten-year security coverage to 25,000+ packages in Main and Universe repositories, and it is free for up to five machines.


Have additional questions?

Talk to a member of the team ›