Skip to content

Commit 0121fb9

Browse files
author
github-actions
committed
Update gh-pages
1 parent f63c390 commit 0121fb9

File tree

7 files changed

+504
-115
lines changed

7 files changed

+504
-115
lines changed

advisories/RUSTSEC-2025-0018.html

Lines changed: 212 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,212 @@
1+
<!DOCTYPE html>
2+
3+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
4+
<meta charset="utf-8">
5+
6+
<meta name="author" content="Rust Project Developers">
7+
<meta name="description" content="Security advisory database for Rust crates published through https://crates.io">
8+
<title>RUSTSEC-2025-0018: xmas-elf: Potential out-of-bounds read with a malformed ELF file and the HashTable API. › RustSec Advisory Database</title>
9+
10+
<link href="//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,300italic,400italic" rel="stylesheet">
11+
<link href="/css/basic.css" rel="stylesheet">
12+
<link href="/css/highlight.css" rel="stylesheet">
13+
<link href="/css/index.css" rel="stylesheet">
14+
15+
<script src="/js/index.js" defer></script>
16+
<script src="/js/search.js" defer></script>
17+
18+
<header>
19+
<div class="header-top">
20+
<h1><a href="/"><img class="logo-image" src="/img/rustsec-logo.svg" /></a></h1>
21+
22+
<div class="search">
23+
<form onsubmit="return searchform();">
24+
<input type="search" id="search-term"
25+
placeholder="Look up package or ID..." required
26+
size="20">
27+
</form>
28+
</div>
29+
30+
</div>
31+
<nav>
32+
<div>
33+
<a href="/">About</a>
34+
<a href="/advisories/">Advisories</a>
35+
<a href="/contributing.html">Report Vulnerabilities</a>
36+
</div>
37+
<div>
38+
<a href="https://rust-lang.zulipchat.com/login/#narrow/stream/146229-wg-secure-code/" title="Zulip" aria-label="Zulip"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="height:1em;fill:currentColor"><path d="M473.09 122.97c0 22.69-10.19 42.85-25.72 55.08L296.61 312.69c-2.8 2.4-6.44-1.47-4.42-4.7l55.3-110.72c1.55-3.1-.46-6.91-3.64-6.91H129.36c-33.22 0-60.4-30.32-60.4-67.37 0-37.06 27.18-67.37 60.4-67.37h283.33c33.22-.02 60.4 30.3 60.4 67.35zM129.36 506.05h283.33c33.22 0 60.4-30.32 60.4-67.37 0-37.06-27.18-67.37-60.4-67.37H198.2c-3.18 0-5.19-3.81-3.64-6.91l55.3-110.72c2.02-3.23-1.62-7.1-4.42-4.7L94.68 383.6c-15.53 12.22-25.72 32.39-25.72 55.08 0 37.05 27.18 67.37 60.4 67.37zm522.5-124.15l124.78-179.6v-1.56H663.52v-48.98h190.09v34.21L731.55 363.24v1.56h124.01v48.98h-203.7V381.9zm338.98-230.14V302.6c0 45.09 17.1 68.03 47.43 68.03 31.1 0 48.2-21.77 48.2-68.03V151.76h59.09V298.7c0 80.86-40.82 119.34-109.24 119.34-66.09 0-104.96-36.54-104.96-120.12V151.76h59.48zm244.91 0h59.48v212.25h104.18v49.76h-163.66V151.76zm297 0v262.01h-59.48V151.76h59.48zm90.18 3.5c18.27-3.11 43.93-5.44 80.08-5.44 36.54 0 62.59 7 80.08 20.99 16.72 13.22 27.99 34.99 27.99 60.64 0 25.66-8.55 47.43-24.1 62.2-20.21 19.05-50.15 27.6-85.13 27.6-7.77 0-14.77-.39-20.21-1.17v93.69h-58.7V155.26zm58.7 118.96c5.05 1.17 11.27 1.55 19.83 1.55 31.49 0 50.92-15.94 50.92-42.76 0-24.1-16.72-38.49-46.26-38.49-12.05 0-20.21 1.17-24.49 2.33v77.37z"/></svg></a>
39+
<a href="https://twitter.com/RustSec/" title="Twitter" aria-label="Twitter"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="height:1em;fill:currentColor"><path d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"/></svg></a>
40+
<a href="https://github.com/RustSec/" title="GitHub" aria-label="GitHub"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512" style="height:1em;fill:currentColor"><path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"/></svg></a>
41+
<a href="/feed.xml" title="Atom Feed" aria-label="Atom Feed"><svg xmlns="http://www.w3.org/2000/svg" style="height:1em" viewBox="0 0 8 8">
42+
<style type="text/css">
43+
.button {stroke: none; fill: currentColor;}
44+
.symbol {stroke: none; fill-opacity=0;}
45+
</style>
46+
<rect class="button" width="8" height="8" rx="1.5" />
47+
<circle class="symbol" cx="2" cy="6" r="1" />
48+
<path class="symbol" d="m 1,4 a 3,3 0 0 1 3,3 h 1 a 4,4 0 0 0 -4,-4 z" />
49+
<path class="symbol" d="m 1,2 a 5,5 0 0 1 5,5 h 1 a 6,6 0 0 0 -6,-6 z" />
50+
</svg></a>
51+
</div>
52+
</nav>
53+
</header>
54+
55+
<main class="advisory">
56+
<article>
57+
58+
<span class="floating-menu">
59+
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/xmas-elf/RUSTSEC-2025-0018.md">History</a>
60+
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/xmas-elf/RUSTSEC-2025-0018.md">Edit</a>
61+
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2025-0018">JSON (OSV)</a>
62+
</span>
63+
64+
65+
<header>
66+
<h1>
67+
68+
RUSTSEC-2025-0018
69+
70+
</h1>
71+
<span class="subtitle"><p>Potential out-of-bounds read with a malformed ELF file and the HashTable API.</p>
72+
</span>
73+
</header>
74+
75+
76+
77+
<dl>
78+
<dt id="reported">Reported</dt>
79+
<dd>
80+
<time datetime="2025-03-26">
81+
March 26, 2025
82+
</time>
83+
</dd>
84+
85+
<dt id="issued">Issued</dt>
86+
<dd>
87+
<time datetime="2025-03-26">
88+
March 26, 2025
89+
</time>
90+
91+
</dd>
92+
93+
<dt id="package">Package</dt>
94+
<dd>
95+
96+
97+
<a href="/packages/xmas-elf.html">xmas-elf</a>
98+
(<a href="https://crates.io/crates/xmas-elf">crates.io</a>)
99+
100+
101+
</dd>
102+
103+
<dt id="type">Type</dt>
104+
<dd>
105+
106+
Vulnerability
107+
108+
</dd>
109+
110+
111+
<dt id="categories">Categories</dt>
112+
<dd>
113+
<ul>
114+
115+
<li><a href="/categories/memory-exposure.html">memory-exposure</a></li>
116+
117+
</ul>
118+
</dd>
119+
120+
121+
122+
123+
124+
125+
126+
<dt id="details">References</dt>
127+
<dd>
128+
<ul>
129+
130+
<li>
131+
<a href="https://github.com/nrc/xmas-elf/issues/86">
132+
https://github.com/nrc/xmas-elf/issues/86
133+
</a>
134+
</li>
135+
136+
137+
</ul>
138+
</dd>
139+
140+
141+
142+
143+
144+
145+
146+
<dt id="patched">Patched</dt>
147+
<dd>
148+
149+
<ul>
150+
151+
<li><code>&gt;=0.10</code></li>
152+
153+
</ul>
154+
155+
</dd>
156+
157+
158+
159+
160+
161+
162+
163+
164+
</dl>
165+
166+
167+
168+
<dl>
169+
<dt>Affected Functions</dt>
170+
<dd>Version</dd>
171+
172+
<dt><code>xmas_elf::hash::HashTable::get_bucket</code></dt>
173+
<dd>
174+
<ul>
175+
176+
<li><code>&lt;0.10</code></li>
177+
178+
</ul>
179+
</dd>
180+
181+
<dt><code>xmas_elf::hash::HashTable::get_chain</code></dt>
182+
<dd>
183+
<ul>
184+
185+
<li><code>&lt;0.10</code></li>
186+
187+
</ul>
188+
</dd>
189+
190+
</dl>
191+
192+
193+
194+
195+
<h3 id="description">Description</h3>
196+
<p>Affected versions of this crate only validated the <code>index</code> argument of
197+
<code>HashTable::get_bucket</code> and <code>HashTable::get_chain</code> against the input-controlled
198+
<code>bucket_count</code> and <code>chain_count</code> fields, but not against the size of the ELF
199+
section. As a result, a malformed ELF file could trigger out-of-bounds reads in
200+
a consumer of the HashTable API by setting these fields to inappropriately large
201+
values that would fall outside the relevant hash table section, and by
202+
introducing correspondingly out-of-bounds hash table indexes elsewhere in the ELF
203+
file.</p>
204+
205+
206+
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
207+
license.
208+
209+
210+
</p>
211+
</article>
212+
</main>

advisories/index.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,25 @@ <h1><a href="/"><img class="logo-image" src="/img/rustsec-logo.svg" /></a></h1>
6464

6565
<ul>
6666

67+
<li>
68+
<time datetime="2025-03-26">
69+
March 26, 2025
70+
</time>
71+
72+
73+
<h3>
74+
75+
76+
77+
<a href="/advisories/RUSTSEC-2025-0018.html">
78+
RUSTSEC-2025-0018: Vulnerability in xmas-elf
79+
</a>
80+
</h3>
81+
<span><p>Potential out-of-bounds read with a malformed ELF file and the HashTable API.</p>
82+
</span>
83+
84+
</li>
85+
6786
<li>
6887
<time datetime="2025-03-23">
6988
March 23, 2025

categories/memory-exposure.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,25 @@ <h1>Advisories in category &#x27;memory-exposure&#x27;</h1>
6666

6767
<ul>
6868

69+
<li>
70+
<time datetime="2025-03-26">
71+
March 26, 2025
72+
</time>
73+
74+
75+
<h3>
76+
77+
78+
79+
<a href="/advisories/RUSTSEC-2025-0018.html">
80+
RUSTSEC-2025-0018: Vulnerability in xmas-elf
81+
</a>
82+
</h3>
83+
<span><p>Potential out-of-bounds read with a malformed ELF file and the HashTable API.</p>
84+
</span>
85+
86+
</li>
87+
6988
<li>
7089
<time datetime="2025-02-02">
7190
February 2, 2025

0 commit comments

Comments
 (0)