Find all pairs of primes $p, q<2023$ such that $p \mid q^2+8$ and $q \mid p^2+8$.
1. **Assume without loss of generality that \( p \ge q \).** This assumption simplifies the problem by reducing the number of cases we need to consider.

2. **Given \( p \mid q^2 + 8 \), we can write:**
   \[
   q^2 + 8 = kp \quad \text{for some integer } k.
   \]

3. **Given \( q \mid p^2 + 8 \), we can write:**
   \[
   p^2 + 8 = lq \quad \text{for some integer } l.
   \]

4. **Substitute \( q^2 + 8 = kp \) into the second condition:**
   \[
   q \mid p^2 + 8.
   \]
   Since \( q \mid p^2 + 8 \), we can write:
   \[
   p^2 + 8 = lq.
   \]

5. **Consider the case \( q = 2 \):**
   \[
   p \mid 2^2 + 8 \implies p \mid 12.
   \]
   The prime factors of 12 are 2 and 3. Since \( p \) is a prime number and \( p \ge q = 2 \), the possible values for \( p \) are 2 and 3.

   - If \( p = 2 \), then \( (p, q) = (2, 2) \).
   - If \( p = 3 \), then we need to check if \( q \mid 3^2 + 8 \):
     \[
     q \mid 17.
     \]
     Since 17 is a prime number and \( q = 2 \), this case does not work.

6. **Consider the case \( q \neq 2 \) and \( q \) is an odd prime:**
   \[
   q \mid p^2 + 8.
   \]
   Since \( q \) is an odd prime, we can reduce modulo \( q \):
   \[
   p^2 \equiv -8 \pmod{q}.
   \]
   This implies that \(-8\) is a quadratic residue modulo \( q \).

7. **From \( q^2 + 8 = kp \), we have:**
   \[
   kp = q^2 + 8.
   \]
   Since \( p \ge q \), we have:
   \[
   kp \ge q^2 + 8.
   \]
   This implies:
   \[
   k \ge \frac{q^2 + 8}{p}.
   \]

8. **If \( q \mid 8 + k \), then \( k = mq - 8 \) for some integer \( m \):**
   \[
   q^2 + 8 = (mq - 8)p.
   \]
   Simplifying, we get:
   \[
   q^2 + 8 = mpq - 8p.
   \]
   Rearranging, we get:
   \[
   q^2 + 8 + 8p = mpq.
   \]
   \[
   q^2 + 8(1 + p) = mpq.
   \]

9. **If \( q = 3 \):**
   \[
   p \mid 3^2 + 8 \implies p \mid 17.
   \]
   Since 17 is a prime number and \( p < 2023 \), the possible value for \( p \) is 17.

   - If \( p = 17 \), then \( (p, q) = (17, 3) \).

10. **Check for other values of \( q \):**
    - For \( q = 5 \):
      \[
      p \mid 5^2 + 8 \implies p \mid 33.
      \]
      The prime factors of 33 are 3 and 11. Since \( p \ge q = 5 \), the possible value for \( p \) is 11.

      - If \( p = 11 \), then \( (p, q) = (11, 5) \).

11. **Summarize the pairs:**
    - The pairs of primes \( (p, q) \) that satisfy the conditions are \( (2, 2) \), \( (17, 3) \), and \( (11, 5) \).

The final answer is \(\boxed{(2, 2), (17, 3), (11, 5)}\).