Ubuntu 18.04 ESM / 20.04 ESM : Symfony vulnerabilities (USN-5290-1)

medium Nessus Plugin ID 183134

Synopsis

The remote Ubuntu host is missing one or more security updates.

Description

The remote Ubuntu 18.04 ESM / 20.04 ESM host has packages installed that are affected by multiple vulnerabilities as referenced in the USN-5290-1 advisory.

- Symfony is a PHP framework for web and console applications and a set of reusable PHP components. The ability to enumerate users was possible without relevant permissions due to different handling depending on whether the user existed or not when attempting to use the switch users functionality. We now ensure that 403s are returned whether the user exists or not if a user cannot switch to a user or if the user does not exist. The patch for this issue is available for branch 3.4. (CVE-2021-21424)

- Symfony/Serializer handles serializing and deserializing data structures for Symfony, a PHP framework for web and console applications and a set of reusable PHP components. Symfony versions 4.1.0 before 4.4.35 and versions 5.0.0 before 5.3.12 are vulnerable to CSV injection, also known as formula injection. In Symfony 4.1, maintainers added the opt-in `csv_escape_formulas` option in the `CsvEncoder`, to prefix all cells starting with `=`, `+`, `-` or `@` with a tab `\t`. Since then, OWASP added 2 chars in that list:
Tab (0x09) and Carriage return (0x0D). This makes the previous prefix char (Tab `\t`) part of the vulnerable characters, and OWASP suggests using the single quote `'` for prefixing the value. Starting with versions 4.4.34 and 5.3.12, Symfony now follows the OWASP recommendations and uses the single quote `'` to prefix formulas and add the prefix to cells starting by `\t`, `\r` as well as `=`, `+`, `-` and `@`. (CVE-2021-41270)

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Update the affected packages.

See Also

https://ubuntu.com/security/notices/USN-5290-1

Plugin Details

Severity: Medium

ID: 183134

File Name: ubuntu_USN-5290-1.nasl

Version: 1.0

Type: local

Agent: unix

Published: 10/16/2023

Updated: 10/16/2023

Supported Sensors: Agentless Assessment, Frictionless Assessment Agent, Frictionless Assessment AWS, Frictionless Assessment Azure, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3.6

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 3.7

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N

CVSS Score Source: CVE-2021-21424

CVSS v3

Risk Factor: Medium

Base Score: 6.5

Temporal Score: 5.7

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS Score Source: CVE-2021-41270

Vulnerability Information

CPE: cpe:/o:canonical:ubuntu_linux:18.04:-:esm, cpe:/o:canonical:ubuntu_linux:20.04:-:esm, p-cpe:/a:canonical:ubuntu_linux:php-symfony, p-cpe:/a:canonical:ubuntu_linux:php-symfony-amazon-mailer, p-cpe:/a:canonical:ubuntu_linux:php-symfony-asset, p-cpe:/a:canonical:ubuntu_linux:php-symfony-browser-kit, p-cpe:/a:canonical:ubuntu_linux:php-symfony-cache, p-cpe:/a:canonical:ubuntu_linux:php-symfony-class-loader, p-cpe:/a:canonical:ubuntu_linux:php-symfony-config, p-cpe:/a:canonical:ubuntu_linux:php-symfony-console, p-cpe:/a:canonical:ubuntu_linux:php-symfony-css-selector, p-cpe:/a:canonical:ubuntu_linux:php-symfony-debug, p-cpe:/a:canonical:ubuntu_linux:php-symfony-debug-bundle, p-cpe:/a:canonical:ubuntu_linux:php-symfony-dependency-injection, p-cpe:/a:canonical:ubuntu_linux:php-symfony-dom-crawler, p-cpe:/a:canonical:ubuntu_linux:php-symfony-dotenv, p-cpe:/a:canonical:ubuntu_linux:php-symfony-event-dispatcher, p-cpe:/a:canonical:ubuntu_linux:php-symfony-expression-language, p-cpe:/a:canonical:ubuntu_linux:php-symfony-filesystem, p-cpe:/a:canonical:ubuntu_linux:php-symfony-finder, p-cpe:/a:canonical:ubuntu_linux:php-symfony-form, p-cpe:/a:canonical:ubuntu_linux:php-symfony-framework-bundle, p-cpe:/a:canonical:ubuntu_linux:php-symfony-google-mailer, p-cpe:/a:canonical:ubuntu_linux:php-symfony-http-client, p-cpe:/a:canonical:ubuntu_linux:php-symfony-http-foundation, p-cpe:/a:canonical:ubuntu_linux:php-symfony-inflector, p-cpe:/a:canonical:ubuntu_linux:php-symfony-intl, p-cpe:/a:canonical:ubuntu_linux:php-symfony-ldap, p-cpe:/a:canonical:ubuntu_linux:php-symfony-lock, p-cpe:/a:canonical:ubuntu_linux:php-symfony-mailchimp-mailer, p-cpe:/a:canonical:ubuntu_linux:php-symfony-mailer, p-cpe:/a:canonical:ubuntu_linux:php-symfony-mailgun-mailer, p-cpe:/a:canonical:ubuntu_linux:php-symfony-messenger, p-cpe:/a:canonical:ubuntu_linux:php-symfony-mime, p-cpe:/a:canonical:ubuntu_linux:php-symfony-monolog-bridge, p-cpe:/a:canonical:ubuntu_linux:php-symfony-options-resolver, p-cpe:/a:canonical:ubuntu_linux:php-symfony-phpunit-bridge, p-cpe:/a:canonical:ubuntu_linux:php-symfony-postmark-mailer, p-cpe:/a:canonical:ubuntu_linux:php-symfony-process, p-cpe:/a:canonical:ubuntu_linux:php-symfony-property-access, p-cpe:/a:canonical:ubuntu_linux:php-symfony-property-info, p-cpe:/a:canonical:ubuntu_linux:php-symfony-proxy-manager-bridge, p-cpe:/a:canonical:ubuntu_linux:php-symfony-routing, p-cpe:/a:canonical:ubuntu_linux:php-symfony-security, p-cpe:/a:canonical:ubuntu_linux:php-symfony-security-bundle, p-cpe:/a:canonical:ubuntu_linux:php-symfony-security-core, p-cpe:/a:canonical:ubuntu_linux:php-symfony-security-csrf, p-cpe:/a:canonical:ubuntu_linux:php-symfony-security-guard, p-cpe:/a:canonical:ubuntu_linux:php-symfony-security-http, p-cpe:/a:canonical:ubuntu_linux:php-symfony-sendgrid-mailer, p-cpe:/a:canonical:ubuntu_linux:php-symfony-serializer, p-cpe:/a:canonical:ubuntu_linux:php-symfony-stopwatch, p-cpe:/a:canonical:ubuntu_linux:php-symfony-templating, p-cpe:/a:canonical:ubuntu_linux:php-symfony-translation, p-cpe:/a:canonical:ubuntu_linux:php-symfony-twig-bridge, p-cpe:/a:canonical:ubuntu_linux:php-symfony-twig-bundle, p-cpe:/a:canonical:ubuntu_linux:php-symfony-validator, p-cpe:/a:canonical:ubuntu_linux:php-symfony-var-dumper, p-cpe:/a:canonical:ubuntu_linux:php-symfony-var-exporter, p-cpe:/a:canonical:ubuntu_linux:php-symfony-web-link, p-cpe:/a:canonical:ubuntu_linux:php-symfony-web-profiler-bundle, p-cpe:/a:canonical:ubuntu_linux:php-symfony-web-server-bundle, p-cpe:/a:canonical:ubuntu_linux:php-symfony-workflow, p-cpe:/a:canonical:ubuntu_linux:php-symfony-yaml

Required KB Items: Host/cpu, Host/Ubuntu, Host/Ubuntu/release, Host/Debian/dpkg-l

Exploit Ease: No known exploits are available

Patch Publication Date: 8/24/2022

Vulnerability Publication Date: 5/13/2021

Reference Information

CVE: CVE-2021-21424, CVE-2021-41270

USN: 5290-1