Skip to content

Cobbler vulnerable to code injection via unsafe YAML loading

Moderate severity GitHub Reviewed Published May 17, 2022 to the GitHub Advisory Database • Updated Jan 15, 2024

Package

pip cobbler (pip)

Affected versions

< 2.6.0

Patched versions

2.6.0

Description

The set_mgmt_parameters function in item.py in cobbler before 2.2.2 allows context-dependent attackers to execute arbitrary code via vectors related to the use of the yaml.load function instead of the yaml.safe_load function, as demonstrated using Puppet.

References

Published by the National Vulnerability Database Oct 27, 2014
Published to the GitHub Advisory Database May 17, 2022
Reviewed Jan 15, 2024
Last updated Jan 15, 2024

Severity

Moderate

EPSS score

Exploit Prediction Scoring System (EPSS)

This score estimates the probability of this vulnerability being exploited within the next 30 days. Data provided by FIRST.
(81st percentile)

Weaknesses

Improper Input Validation

The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. Learn more on MITRE.

Improper Control of Generation of Code ('Code Injection')

The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. Learn more on MITRE.

CVE ID

CVE-2011-4953

GHSA ID

GHSA-hpj3-5p46-g87w

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.