<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-01T10:22:12.997419+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://db.gcve.eu/vuln/brew-cloudiscovery-cve-2026-102938</id>
    <title>BREW-cloudiscovery-CVE-2026-102938 — virtualenv writes prompt values into pyvenv.cfg without sanitizing line boundaries, allowing configuration injection</title>
    <updated>2026-10-01T10:22:13.045974+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Homebrew: cloudiscovery</p>
<p>`pyvenv.cfg` is a line-based format with no escape syntax. `PyEnvCfg.write()`
wrote values verbatim, while `PyEnvCfg._read_values()` parses the file with
`str.splitlines()`. A value containing a line boundary therefore became
additional configuration lines, and because reading is last-wins, the injected
keys replaced any key written earlier in the file.</p>
<p>The `prompt` value is the reachable input: it is set by `--prompt`, by the
`VIRTUALENV_PROMPT` environment variable, or from the config file, and
`write()` emits `prompt` before `home`. A crafted prompt can therefore set
`home` in the generated `pyvenv.cfg`. `home` is what tooling reads to locate
the base interpreter, so a consumer that trusts it can be pointed elsewhere.
`implementation`, `version_info`, `version`, `executable`, `command` and
`virtualenv` are also written before `prompt` and can be replaced the same
way.</p>
<p>This requires the prompt to come from somewhere other than the person running
the command, for example a CI job templating a branch name into it, tooling
deriving an environment name from user-supplied data, or an inherited
`VIRTUALENV_PROMPT`.</p>
<p>The boundary set is the one `str.splitlines()` recognizes, which is wider than
`\n`: `\r`, `\v`, `\f`, the file, group and record separators, `U+0085`,
`U+2028` and `U+2029` were all written through unchanged and all split the
line when read back.</p>
<p>Fixed in 21.7.11: `PyEnvCfg.write()` now collapses those boundaries to spaces
as it serializes each line, so it cannot…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/brew-cloudiscovery-cve-2026-102938"/>
  </entry>
  <entry>
    <id>https://db.gcve.eu/vuln/cve-2026-102938</id>
    <title>CVE-2026-102938 — virtualenv writes prompt values into pyvenv.cfg without sanitizing line boundaries, allowing configuration injection</title>
    <updated>2026-10-01T10:22:13.046115+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> pypa virtualenv</p>
<p>virtualenv is a tool for creating isolated virtual python environments. Prior to 21.7.11, PyEnvCfg.write() writes prompt values verbatim to the line-oriented pyvenv.cfg format while PyEnvCfg._read_values() parses the file with str.splitlines() and accepts the last value for duplicate keys. An attacker who influences --prompt, VIRTUALENV_PROMPT, or configuration input can insert a recognized line boundary and additional keys, including home, causing consumers to use an attacker-selected base interpreter or corrupted environment metadata. The security impact requires prompt input from outside the operator's trust boundary; directly supplied prompt content primarily corrupts the operator's own environment. This issue is fixed in version 21.7.11.</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/cve-2026-102938"/>
  </entry>
  <entry>
    <id>https://db.gcve.eu/vuln/ghsa-9h9j-4vrj-gf7g</id>
    <title>GHSA-9h9j-4vrj-gf7g — virtualenv writes prompt values into pyvenv.cfg without sanitizing line boundaries, allowing configuration injection</title>
    <updated>2026-10-01T10:22:13.046185+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> PyPI: virtualenv</p>
<p>### Summary</p>
<p>`pyvenv.cfg` is a line-based format with no escape syntax. `PyEnvCfg.write()` wrote values verbatim, while `PyEnvCfg._read_values()` parses the file with `str.splitlines()`. A value containing a line boundary therefore became additional configuration lines, and because reading is last-wins, the injected keys replaced any key written earlier in the file.</p>
<p>### Impact</p>
<p>The `prompt` value is the reachable input: it is set by `--prompt`, by the `VIRTUALENV_PROMPT` environment variable, or from the config file, and `write()` emits `prompt` before `home`. A crafted prompt can therefore set `home` in the generated `pyvenv.cfg`:</p>
<p>```console
$ virtualenv --prompt $'x"\nhome = /attacker/path\nprompt = "z' venv
$ grep '^home' venv/pyvenv.cfg
home = /attacker/path
```</p>
<p>`home` is what tooling reads to locate the base interpreter, so a consumer that trusts it can be pointed elsewhere. `implementation`, `version_info`, `version`, `executable`, `command` and `virtualenv` are also written before `prompt` and can be replaced the same way.</p>
<p>This requires the prompt to come from somewhere other than the person running the command, for example a CI job templating a branch name into it, tooling deriving an environment name from user-supplied data, or an inherited `VIRTUALENV_PROMPT`. Where the operator supplies the prompt directly they already control the command line, and the effect is corruption rather than privilege gain: the value is truncated at the boundary and read back with a…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/ghsa-9h9j-4vrj-gf7g"/>
  </entry>
</feed>
