<?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-11-17T16:10:12.615964+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/ghsa-c8m7-r2jv-rw63</id>
    <title>GHSA-c8m7-r2jv-rw63 — EGroupware Vulnerable to Local File Inclusion via file:// URI in Mail Compose</title>
    <updated>2026-11-17T16:10:12.617463+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Packagist: egroupware/egroupware</p>
<p>### Summary
The function processes image URLs embedded in an HTML email body without validating or restricting URI schemes. The check `!str_starts_with($myUrl, 'http')` evaluates to true for `file://` URIs, causing `file_get_contents($basedir . urldecode($myUrl))` to read arbitrary files from the server filesystem and embed them as inline MIME attachments in outgoing email.</p>
<p>str_starts_with('file:///etc/passwd', 'http') → **false**
!false → **true**</p>
<p>```php
// api/src/Mail.php  
foreach($images[2] as $i =&gt; $url)
			{
				//$isData = false;
				$basedir = $data = '';
				$needTempFile = true;
				$attachmentData = ['name' =&gt; '', 'type' =&gt; '', 'file' =&gt; '', 'tmp_name' =&gt; ''];
				try
				{
					// do not change urls for absolute images (thanks to corvuscorax)
					if (!str_starts_with($url, 'data:'))
					{
						$attachmentData['name'] = basename($url); // need to resolve all sort of url
						if (($directory = dirname($url)) == '.') $directory = '';
						$ext = pathinfo($attachmentData['name'], PATHINFO_EXTENSION);
						$attachmentData['type'] = MimeMagic::ext2mime($ext);
						if ( strlen($directory) &gt; 1 &amp;&amp; !str_ends_with($directory, '/')) { $directory .= '/'; }
..
...
....
// processURL2InlineImages function
if ( $myUrl[0]!='/' &amp;&amp; strlen($basedir) &gt; 1 &amp;&amp; !str_ends_with($basedir, '/')) { $basedir .= '/'; }
						if ($needTempFile &amp;&amp; empty($attachment) &amp;&amp; !str_starts_with($myUrl, "http"))
						{
							try {
								$data = file_get_contents($basedir.urldecode($myUrl));…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/ghsa-c8m7-r2jv-rw63"/>
  </entry>
</feed>
